<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'customer.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/biaoge.css"/>
<script type="text/javascript" src="jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
  </head>
  <script type="text/javascript">
  /* var c=$("#chakan");
  var go=$("#gong");
  var jub=$("#jubao"); */

 function ju(){
    window.location=".action";
  }
  function cha(){
 
   window.location="showCustomer.action";
     
  }
  
  function g(){
    window.location="showindustry.action";
  }
  
  function cusdetail(id){
    window.location="cusdetail.action?uid="+id;
  }
   function chaxun(){
  var username=document.getElementById("uname").value;
     window.location="serchcustomer.action?uname="+username;
  }
  function kai(a){
   var k=document.getElementById("zuihou");
  if(a<=1) k.innerHTML="这已经第一页了";
  }
  function zui(a,b){
  var z=document.getElementById("zuihou");
  if(a>=b) z.innerHTML="这已经是最后一页了";
  }
  </script>
  <body> 
   
    <%--     您已登录,用户名为：${mana.managersName}<br/><br/>
   <table>
   	<tr>
   	<td width="5%">
   	</td>
   	<td valign="top">
   	<!-- 	<div style=" width:190px; float:left">
	   <input type="button" value="举报信息" onclick="ju()"><br><br>
	   <input type="button" value="用户管理" onclick="cha()"><br><br>
	   <input type="button" value="工厂管理" onclick="g()"><br><br>
	   </div>  -->
   	</td><td width="5%"></td>
   		<td valign="top"> --%>
   			<div style="width:750px; float:right;" id="chakan">
      <input type="button" value="查询用户" onclick="chaxun()" style="float:right; margin-top: 5px"><input type="text" name="uname" id="uname" style="float:right; margin-top: 5px"><br>
    
    <table id="mytable" cellspacing="10">
  <tr >
  <td>用户名</td>  <td>注册邮箱</td>  <td>查看详细信息</td>  <td>删除用户</td></tr>
   <c:forEach items="${fenyelist}" var="cusli"> 
  <tr><td>${cusli.userName}</td>  <td>${cusli.userMail}</td>  
   <td>
   <input type="button" style="border-style:none" value="查看详细信息" onclick=" cusdetail(${cusli.userId})">
   </td>  
   <td><input type="checkbox" name="${cusli.userId}"> </td> </tr>
   </c:forEach>
  
  </table>
  <br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  &nbsp;&nbsp;&nbsp;
  <input type="button"  value="确定删除用户"/>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<p>
&lt;&lt;<a href="showCustomer?page=1"> 首页</a>&lt;<a href="showCustomer?page=${pagenow-1}" onclick="kai(${page})">上一页</a>
							<strong>第${pagenow}页/共${pagecount}页</strong>
							<a href="showCustomer?page=${pagenow+1}" onclick="zui(${page},${pagecount})"> 下一页</a>&gt;
							<a href="showCustomer?page=${pagecount}">末页</a>&gt;&gt;
						</p>
						<font size="2" color="red" id="zuihou"></font>
						</div>
   	<!-- 	</td>
   	</tr>
   	
   </table> -->
   
 
    
						
	
  </body>
</html>
